/*********************************************************************************
* Copyright (c) zhujinyang.
* All rights reserved.
*
* \file
*
* kernel dynamic memory
* 
*********************************************************************************/
#ifndef OS_MEMORY_H
#define OS_MEMORY_H





/**********************************************************************************
* \brief:       System dynamic memory module initialization
* \param[in]:   none
* \return:      none
**********************************************************************************/
void os_memory_init(void);



/**********************************************************************************
* \brief:       allocte dynamic memory
* \param[in]:   alen: need length
* \return:      failure: NULL, otherwise nomally
**********************************************************************************/
void *os_memory_alloc(INT32U alen);



/**********************************************************************************
* \brief:       free dynamic memory
* \param[in]:   dptr: pointer to be free
* \return:      0: success
**********************************************************************************/
INT32S os_momory_free(void *dptr);





#endif




/*---------------------------------------the end------------------------------------------*/







